package net.fenghaitao.handler;

import net.fenghaitao.domain.ExcelVerifyHandlerResult;
import net.fenghaitao.model.Ship;

/**
 * @author ：HuangXiong
 * @date ：Created in 2021/1/12 11:18
 * @description：MyAutoExcelValidHandler
 * @modified By：
 * @version:
 */
public class MyAutoExcelValidHandler implements AutoExcelValidHandler<Ship> {



    @Override
    public ExcelVerifyHandlerResult doValid(Ship ship) {
        ExcelVerifyHandlerResult excelVerifyHandlerResult = new ExcelVerifyHandlerResult();
        excelVerifyHandlerResult.setHasErrors(true);
        excelVerifyHandlerResult.addErrorMsg(ship.toString());
        return excelVerifyHandlerResult;
    }
}
